using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ArchSoft
{
    public partial class SetScheduleInf : Form
    {

        DateTime start;
        DateTime end;
        string finished = "No";

        public DateTime StartDate
        {
            get
            {
                return start;
            }
        }

        public DateTime EndDate
        {
            get
            {
                return end;
            }
        }

        public string Finish
        {
            get
            {
                return finished;
            }
        }


        public SetScheduleInf()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            start = dateTimePicker1.Value;
            end = dateTimePicker2.Value;

            foreach (RadioButton bx in this.groupBox1.Controls)
            {
                if (bx.Checked)
                {
                    finished = bx.Tag.ToString();
                    break;
                }
            }

            this.DialogResult = DialogResult.Yes;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.No;
            this.Close();
        }
    }
}